﻿using FluentValidation;

namespace FileService.WebApi.Controllers
{
    public record ShowTabRequest(long TabId, string Name,int Type);
    public class ShowTabRequestValidator : AbstractValidator<ShowTabRequest>
    {
        public ShowTabRequestValidator()
        {
            RuleFor(e => e.TabId).NotNull().NotEmpty();
            RuleFor(e => e.Name).NotNull().NotEmpty();
            RuleFor(e => e.Type).NotNull().NotEmpty();
        }
   
    }
}